import 'package:flustars/flustars.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBNavigator.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTSSubPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiFSubPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiSubFourPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiSubTPage.dart';

class YBWorkTaiMainPage extends StatefulWidget {
  @override
  _YBWorkTaiMainPageState createState() => _YBWorkTaiMainPageState();
}

class _YBWorkTaiMainPageState extends State<YBWorkTaiMainPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
        color: YBColor.commonPageBackGroundColor,
        child: Scaffold(
          appBar: AppBar(
            elevation: 0,
            title:Container(
              child: Text(YBChineseText.workTaiYingYongTitle,style: YBTextStyle.workTaiBigTitleText,),
            ),
            actions: [
              InkWell(
                child: Container(
                  child: InkWell(
                    child: Image.asset(YBImageStyle.getImagePath('counmsel_qrcode')),
                    onTap: () async {
                      YBNavigatorUtil.jump(context, "/homePage/homePageScannPage");
                    },
                  ),
                ),
              )
            ],
          ),
          body: Padding(
              padding:EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20),
              child:Container(
                child:  SingleChildScrollView(
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.start,
                    crossAxisAlignment: CrossAxisAlignment.stretch,
                    children: [
                      Container(
                        child: YBWorkTaiFSubPage(),
                      ),
                      Container(
                        child: YBWorkTaiSubSPage(),
                      ),
                      Container(
                        child: Padding(
                            padding: EdgeInsets.only(top: YBTextStyle.adapterSize16),
                            child: YBWorkTaiSubTPage(),
                        ),
                      ),
                      Container(
                        child: Padding(
                            padding:EdgeInsets.only(top: YBTextStyle.adapterSize16,bottom: YBTextStyle.adapterSize20),
                            child: YBWorkTaiSubFourPage(),
                        ),
                      ),
                    ],
                  ),
                ),
              ),
          ),
        ),
    );
  }
}
